dic = {}
dic['name'] = 'zhangsan'
dic['age'] = 20
print(dic)
dic2 = {'name':'list','age':18,'hight':'180cm'}
print(dic2['name'])
print(dic2.keys())
print(dic2.values())

dic3 = dict([('html',1),('java',2),('python',3)])
print(dic3)

for i in dic3:
    print(dic3[i])

print(dic3.get("python","c++值不存在"))